package cn.btks.backstagemanage.division.repository;

import cn.btks.backstagemanage.division.pojo.City;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author lijun
 * @Date 2021/1/25 11:01
 */
@Repository
public interface CityRepository extends JpaRepository<City,Long> {

    /**
     * 根据名称查询师信息
     * @param name
     * @return
     */
    City findByName(String name);

    /**
     * 根据是否展示查询所有师信息
     * @param isShow
     * @return
     */
    List<City> findAllByIsShow(Integer isShow);
}
